package com.yuelu.community.community;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Repository;

@SpringBootApplication   //@EnableAutoConfiguration自动配置   @ComponentScan组件扫描
public class CommunityApplication {

	public static void main(String[] args) {
		//启动tomcat服务器，自动创建ioc容器
		SpringApplication.run(CommunityApplication.class, args);
		//ioc容器创建后，会自动扫描配置类所在包及其子包下的带特定注解的类自动创建bean并将其装配到容器里
		//配置文件就是启动类！组件扫描带特定注解的bean:@component-常规组件、@controller-处理请求的组件 @service-处理业务的组件、@mapper/@repository数据库访问组件
	}

}
